Fix debug output HTML validation when using HTML5 doctype
Merge pull request #928 from emodric/debug-output-html-validation

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