Fixing AJAX race condition in TripTicketsMap javascript class. #1868