Fix missing NULL checks in CKE processing