Fix a bug in rating calculation

This was a bug that miscalculates the situation where a player
does not play any games for an entire rating period.

(Reported by Noah Smith)