Fixed the bug where checking badge sales made uber server explode.

Signed-off-by: Victoria <kitsuta@gmail.com>