Fixed ORM provider getRouteByName returning an array instead of single route instance.