Do not throw an error in dom.getNodeType().