avoid altering unmodifiable collection

In some circumstances, the project artifacts can be an unmodifiable
collection. To ensure that's not the case, work on a copy of the set.

git-svn-id: https://svn.apache.org/repos/asf/incubator/npanday/trunk@1578863 13f79535-47bb-0310-9956-ffa450edef68