avformat/dashenc: Fix a bug with writing "final" manifest