Fixed incorrect building of attributed strings from html when a tag has the display style of none