Avoid computing path when no onRoute set
Merge pull request #2006 from megawac/process-route

Avoid computing routepath when onRoute isn't set