dummy: Don’t modify a HashMap while iterating over it

Iterate over a copy instead.

https://bugzilla.gnome.org/show_bug.cgi?id=732244