Removed ref to RequestContext in error template