Fix error if no "batch" route is available

This is a bugfix. The error appears when route `batch` is removed in `configureRoutes` method.