Update FrontController.php

Fixed uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed