[travis] handle missing branches correctly