mattdrayer/api: Fixed NRE corner case for grades leaderboard