Fixes issue with essence validation for uniqueness.

Validating the uniqueness of an essence always leaded to a failing validation because the way of finding a duplicate was wrong: We did not consider that we also find the essence that is currently validated.