API call 'GetDeathsForMapAndBuildJSON' returns invalid data

The API call 'GetDeathsForMapAndBuildJSON' isn't working properly and is returning invalid data (see http://i.imgur.com/gFMj3Lk.png for the kind of data it was returning)

See the attached commit for a fix.