Fixed EZP-20791: PHP Fatal error: Method eZ\Publish\Core\FieldType\XmlText\Value::__toString() must return a string value

If the call to DOMDocument->saveXML() returns `NULL`, a PHP fatal error is triggered.