Override DOMDocument->createElement()

To avoid "unterminated entity reference" error, create a empty Element and append a Text node if value passed at createElement.

http://fr2.php.net/manual/en/domdocument.createelement.php#72699