fix #3513 - if contrib level is NaN, use 0

Fixes (I hope) https://github.com/HabitRPG/habitrpg/issues/3513. NOTE that private code will need to be edited too - ref https://github.com/HabitRPG/habitrpg-shared/commit/f49ed5436c60d6b135909a3c8714347d99499701
Merge pull request #221 from Alys/fix

fix #3513 - if contrib level is NaN, use 0