Fix transient error where Scribe.window is not null in console.