Fix a potential backwards incompatibility where a legend labelFormatter() returns HTML content, this would include
people converting the legend to provide links.