Changes error500() to use RequestContext

Resolves part of Github Issue #946.

This should be safe, but I don't know if there was a reason that ```Context``` was originally used. @pricem ?