check for infeasible EMD costs and do not try to increase lambda if no flow is feasible