GUI-1351
coverted for-loop to angular.forEach. Seems to help, but not conslusive
fixing regression caused in PR#1054
Merge pull request #1065 from eucalyptus/policy_editor_fix

fixing regression caused in PR#1054
Merge branch 'develop' into GUI-1374