Fixed EZP-20596 - PHP Warning after eZ Publish 5.1.0beta1 demo data installation

This PR just adds a missing `hasVariable()` check in `eZPage::createFromXML()`