Update index.js

Fixes the bot crashing on non playtime based badges such as the "Pillar of Community" badge.