avformat/concatdec: Check file variable before dereferencing