When required, a pointer to ScriptExecutionContext is passed into ScriptExecutionContext::Task invocations. It's never null, so it should be passed in by reference.
Already done in bug #133795.