[#591] Mobile templates display for error pages

* Fix an issue where 403/404 errors would always show the full template rather than the mobile template if required.