Don't set route.previous if there is no previous route.