Bug 961798 - Check if this.window is null in BrowserTabActor.prototype._setJavascriptEnabled. r=past