Bug 900228 - Fix "TypeError: this.selectedEditor.sourceEditor is null" in mochitest runs. r=dcamp, a=logspam