Fix CG_Trace not handling NULL vectors