fixed issue where a page in the CMS throws an error if the layout file disappears