Avoid computing routepath when onRoute isn't set

Just a bit of logic juggling