Oil service company Helix Energy Solutions has narrowed its loss in the second quarter of 2017 backed by increased activity of its well intervention business.