Fix throwing error if player is null (not a real player)