When a limiting tasks has no outgoing dependencies an empty graph was produced and this caused an assertion at TopologicalOrderIterator to fail.