Fixed issue with useHTML legend items not drawing after removing all and adding again. Closes #2393.