[EZP-22623] Fix debug output HTML validation when using HTML5 doctype

Title says it all.

Link: https://jira.ez.no/browse/EZP-22623

Debug output does not validate with HTML5 doctype. It's tedious having to disable it when trying to validate the page, so this commit fixes the validation.