Fixed problem with indexing deprecated records.
Merge pull request #841 from ORCID/fixDeprecatedRecordIndexing

Fixed problem with indexing deprecated records.