mattdrayer/status-500-fix: Small API bug

@chrisndodge can you take a quick look at this small change -- @dsego came across it during his social leaderboard work.