Avoid writing duplicate DOMs when the codec already writes it on its own