Routemap: Fix an issue that shortestRoute() returns wrong results.
Merge remote-tracking branch 'upstream/jqm-1.4' into jqm-1.4