Bugfix: catch error template render errors

Rendering a error template using an apps template engine may fail.

While state management still needs further cleaning up (see #747), we should be
catching errors from rendering an error template, then falling back to static
pages if such an event occurs. This Pr includes @shumphrey tests from #747.