Fix crash when unit somehow disappears between getting hit and taking damage.