rtmpproto: Check the return from ff_amf_read_string