Check REQUEST_CONTEXT.context exists before accessing it.

LMS-11226
good point, will address