Fix error if no "batch" route is available
Merge pull request #1408 from pulzarraider/batch_route_fix

Fix error if no "batch" route is available