[Frontend-GNOME] Fixed iteration after re-parenting chats in the chat tree

Seems like it wasn't a good idea to modify the trees tore and continuing the
iteration like nothing happened. This caused random entries to be skipped and
thus not get properly re-parented.