Check REQUEST_CONTEXT.context exists before accessing it.

LMS-11226
yeah, I think so. I don't know why this template was used in the first place, but there are some template names, like `register.html` that show up in both test suites. I could use that.