Fix a crash in enemy:restart() when the enemy is dying. Fix #558.