added check for 0 edges in gt_scaffolder_graph_isterminal