Fix bugs in Task.computeShortestPath related to refactoring
Fix bugs in Task.computeShortestPath related to refactoring

Slamdunk/waypointviewer,twpayne/waypointviewer,Slamdunk/waypointviewer,Slamdunk/waypointviewer,twpayne/waypointviewer,twpayne/waypointviewer