[DS-2225] Error logging/preventing in the authority script

This pull request will fix the NullPointers, IndexOutOfBoundExceptions when using the authority index script/consumer when the authority hasn't been properly configured.
Useful error/warn messages are logged when this issue is encountered. To test this pull request, execute the script without enabling authority control for ORCID.