Better null protection.
Fixed problem with adding external IDs.
Merge pull request #681 from ORCID/fixAddExternalIdentifiers

Fix add external identifiers