Test demonstrates a case where with_return is not cleared
Catch errors thrown by an apps template engine.

Rendering a error template using an apps template engine may fail. As
state. While state management still needs further cleaning up, we can
catch errors from rendering an error template, and fall back to static
pages if such an event occurs.
reflect changes
Merge branch 'bugfix/catch_error_template_render_errors'