Minor bug fixes in Utils\DOMDocumentEx