Bug Fix: Avoid NPE when firing alerts.