Fix loadContext handling in nsScriptLoader