avformat/concatdec: do not access cat->avf if open_next_file() return error