Added a few extra  nil checks in CDEEventBuilder. Some reports of crashes due to nil.