[ui-Plugin Gtk] Fix warning when no window is displayed