Ok, it's to handle the case where `game.activePlayerId` is `null`. It would be more obvious to add a specific test for this case IMHO.