fix nil ptr deref in alert type parser