Handle KeyError when GITHUB_TOKEN is not used.

If credentials are not supplied (token or user/pass) requests will fail with
unauthorized (401).