Fix bug where exception is thrown if rule is null
Merge pull request #104 from TrevorBurnham/rule-parsing-fix

Fix bug where exception is thrown if rule is null