Preserve a doctype declaration if it exists.