Fixing compatibility with jQueryUI 1.8 css

The CSS from jQueryUI can appear with a null value for cssRules attribute that throws a "cannot access property length of null" when accessing stylesheet rules