fixed a bug for a trip with no errands
Merge pull request #47 from LightningLord/misc_refactoring

fixed a bug for a trip with no errands