Added verification when the lookupIdentityById returns more than one result.