Fixed bug in DOMDocumentEx.