Fixed return value of getStyleRulesBySelector()