IdentityLink null-check

Required when custom identity links are used.