Error handling when identities have no pubkey