5067bda61a
Bailing out early of the loop means the iter is never increased, resulting in an infinite loop. Fixes 26c2cb9f6. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1165