fix segmentation fault in new assert (units without a faction)