OPENAM-5661,CR-6693: If applied, this commit will avoid the memory leak in the console while creating/editing multiple policies.
Fix for AME-202 - review: CR-802