Fix NPE when applying kits which don't have a permission