Fix GitHub API key exceptions being thrown in the wrong places