Fixes possible java.util.ConcurrentModificationException in the ApplicationsController