Fixes possible null value reference when evaluating ruleset dependencies
Restores behavior of running rules in scope of assembleRules function