avformat/apetag: More completely check avio_get_str() return value