fix None exception issue where there's no alert data in the db