Fix #countcontrols issue in IE<=8 when text is very long (#1488890)