Don't use RequestContext::getMain() if a context is available

Change-Id: I2b16cf8f437ccda7cb0feb137710394e4a90d3b5
Merge "Don't use RequestContext::getMain() if a context is available"