Fix NRE if a unit is damaged without a warhead.
Merge pull request #5894 from pchote/warhead-nre

Fix NRE if a unit is damaged without a warhead.