Add guard before deleting partial[attribute]
Merge pull request #2081 from alexBaizeau/bug/identicalAttributeAndKey

Add guard before deleting partial[attribute]