Widget: modify this.window test to support IE8 window equality quirk

Comparing this.window with strict equality fails in IE8