Bug 1071003 - Fix null crash in XULDocument::ExecuteScript (r=smaug)