Fix emtpy contigs being recorded in list