Fix null doctype