Highmaps: Fixed #2877 where legend items for data classes piled up on redraw.