fix rule.declarations.length undefined
Merge pull request #1 from xiaojue/master

fix rule.declarations.length undefined