Fixed two bugs in getTimesByStop, in reply to wdalrymple\'s issue request