[GTK] Fix crash

Caused by collection change while being iterated.