Onboard itinerary fixes

This pull request fixes two bugs related to the onboard depart feature in the PlanGenerator class. One bug would cause NullPointerExceptions. The other bug would cause the number of transfers to be computed incorrectly.