Bug 888746 - Fix JS error on toolbarless windows, r=MattN