avformat/matroskaenc: Regression fix for invalid MKV headers