Make a copy of list before iterating over

About #417
The method unlinkTableSelectionListening updates the map linkedEditableElements. We have to create a copy of the values before iterating over.