OPAL-2391: Fixed condition to add attribute to the new list of attribute...

...s after deletion...