added defensive check in Solvers#convertRoutes(..)