Fixed JS error on adding VML styles in old IE in pages with more than 32 style sheets. Closes #2153.