Fix SimpleXMLElement constructor

Fixed crash when using XPath on SimpleXMLElement created by constructor.

Fixes https://github.com/facebook/hiphop-php/issues/1067