Prevent crash on attempts to authenticate with api key when no api keys are configured