avformat/a64: Avoid segfault in a64_write_header() when stream codec is not open