Fixed crash on dismissing alerts.

[FIXED]     When alerts get dismissed while their clicks are being handled, the result may be a dead reference.