Fixed bug where routes with trains on could be deleted