Fixed NPE when rendering the player.