Check REQUEST_CONTEXT.context exists before accessing it.

LMS-11226
this is more precise tho