[FIX] gamification: prevent traceback in goals history

Closes #1536