Make sure alerts are not empty/None

Reported by:	mav