Add an isAdded() check in updateUIForPlayer.