Added null check for the pkg before trying to get the rule.
Merge pull request #341 from mikedev9000/null-pointer-exception-fix

[DROOLS-511] Added null check for the pkg before trying to get the rule.