Actually throw an error if the API key is not defined