Fixed null pointer.
Merge pull request #1261 from ORCID/delegationFixes

Fixed null pointer.