Fix for Issue #1799

Fixes issues when get is used to get a specific rule that doesn't exist and set/remove are used to update or remove a specific rule that doesn't exist - in this case, the namespace and entity exist, but the rule does not.