Two doctypes were being output. Only output one.
We don't need to write out an extra doctype since we're writing out the entire HTML tree, not just the root node.