Added null check, players aren't the only cause of death for villagers.