Fixed NPE.
Merge pull request #1586 from ORCID/fixNpeInSearchDowngrade

Fixed NPE.