Statusbar: Floating window fix NPE

Credits: @UtkarshGupta