Fix bug preventing getComputedTextLength to be used for legend labels (Github Bug #449)