Check REQUEST_CONTEXT.context exists before accessing it.

LMS-11226
Is this going to have side-effects on other tests?