Fixed a potential ConcurrentModificationException in GanymedeXMLSession.knitInvidReferences