Bug 1028674 - [Collection app] Generated icon shows duplicate apps

I feel a simple for() loop is going to be more efficient here, but the syntax isn't as pretty, so I'm fine with leaving this if you want.