More generally, if you do a check that affects AI results then you cannot be killed.
Ooops, I filed this bug twice. *** This bug has been marked as a duplicate of bug 144186 ***