Fixed page not found error if layout file was missing