[12403] Ensure that isAlive and isDead return expected results

when used in the hooks JustDied, SummonedCreatureJustDied or OnCreatureDeath

(based on commit [12293] - f228d42)