Make staticRoutes more resilient to missing imports