Add check for route

Check if the route is the correct type, otherwise return empty array.
Prevents error for empty routes (or perhaps changes/wrong route
collector). Fixes #11