Fixed error when no trains on a route direction are present