Wrap view rendering in try/catch to prevent leak if an exception is thrown in a template