Fix a crash that occurs when the hero hits a non-ElementItem.