Minor change to shortest path returns.
(Forgot to delete temporary check.)

Signed-off-by: Ted Steiner <tsteiner2@gmail.com>