Modified output to report no shortest path found in a consistent way.