prevent information leak
fix null checks
Merge pull request #920 from ORCID/moveReferredBy

Move referred by