misc cleanup for unknownRoute, also fixed possible bug when parentRoute has no routePath or it is invalid