Fix crash on detection due to dead monsters.