Fix error in get past challenges api.
Merge pull request #325 from Ghost141/past_challenges_fix

Fix error in get past challenges api.