stats: Prevent double-counting of wins/losses.

Fixes ticket:3855.