github_stats: check for key before accessing