fixes crashes if gamestats is null (#169)