Fix NbWindow crash

Turns out passing null as the first argument to
NbWindow.createObject is an error. This was so simple in hindsight
I don't know why it took me so long to find.
1 file changed