Fixed issue when rule.cssRules is undefined