Call powerline.new_window early under certain conditions

Fixes #250 for the GUI.
Merge pull request #984 from ZyX-I/fix-250

Call powerline.new_window early under certain conditions