Bug 1048330 - Null-check the XBL scope in more places. r=smaug