While rare, it is possible to have a window not associated with any app (not even a fake window-based one). We currently throw an error when trying to set the icon for such a window, so handle this case and use a fallback icon instead of the app icon. https://bugzilla.gnome.org/show_bug.cgi?id=743401