Fixed crash with branches but no labels.