Fixed #3276 with HTML markup in element titles when a label is shortened by ellipsis.