DataStructureRule without Entity

Architect allows to define DataStructureRule without an Entity. Such rule, when invoked, will cause NullReferenceException.

System.NullReferenceException: Object reference not set to an instance of an object.
   at Origam.Rule.RuleEngine.ProcessRulesInternal(DataRow rowChanged, IDataDocument data, DataColumn columnChanged, DataStructureRuleSet ruleSet, ICollection columnsChanged, Boolean isFromRuleQueue) in D:\a\1\s\backend\Origam.Rule\RuleEngine.cs:line 949
   at Origam.Rule.RuleEngine.ProcessRulesFromQueue(DataRow rowChanged, IDataDocument data, DataStructureRuleSet ruleSet, ICollection columnsChanged) in D:\a\1\s\backend\Origam.Rule\RuleEngine.cs:line 729
   at Origam.Rule.RuleEngine.ProcessRuleQueue() in D:\a\1\s\backend\Origam.Rule\RuleEngine.cs:line 898
   at Origam.Rule.RuleEngine.ProcessRules(IDataDocument data, DataStructureRuleSet ruleSet, DataRow contextRow) in D:\a\1\s\backend\Origam.Rule\RuleEngine.cs:line 644
   at Origam.Workflow.WorkflowEngine.<>c__DisplayClass123_0.<ProcessRulesTimed>b__0() in D:\a\1\s\backend\Origam.Workflow\Engine.cs:line 1295
   at Origam.Workflow.ProfilingTools.<>c__DisplayClass4_0.<ExecuteAndLogDuration>g__FuncToExecute|0() in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 63
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Func`1 funcToExecute, String logEntryType, String path, String id, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 97
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Action action, String logEntryType, String path, String id, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 66
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Action action, String logEntryType, IWorkflowStep task, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 74
   at Origam.Workflow.WorkflowEngine.ProcessRulesTimed(Key resultContextKey, DataStructureRuleSet ruleSet, IWorkflowStep step) in D:\a\1\s\backend\Origam.Workflow\Engine.cs:line 1292
   at Origam.Workflow.WorkflowEngine.MergeContext(Key resultContextKey, Object inputContext, IWorkflowStep step, String contextName, ServiceOutputMethod method) in D:\a\1\s\backend\Origam.Workflow\Engine.cs:line 1210
   --- End of inner exception stack trace ---
   at Origam.Workflow.WorkflowEngine.MergeContext(Key resultContextKey, Object inputContext, IWorkflowStep step, String contextName, ServiceOutputMethod method) in D:\a\1\s\backend\Origam.Workflow\Engine.cs:line 1250
   at Origam.Workflow.WorkflowEngine.<>c__DisplayClass126_1.<OnEngineTaskFinished>b__1() in D:\a\1\s\backend\Origam.Workflow\Engine.cs:line 1429
   at Origam.Workflow.ProfilingTools.<>c__DisplayClass4_0.<ExecuteAndLogDuration>g__FuncToExecute|0() in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 63
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Func`1 funcToExecute, String logEntryType, String path, String id, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 97
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Action action, String logEntryType, String path, String id, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 66
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Action action, String logEntryType, IWorkflowStep task, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 74
   at Origam.Workflow.WorkflowEngine.OnEngineTaskFinished(Object sender, WorkflowEngineTaskEventArgs e) in D:\a\1\s\backend\Origam.Workflow\Engine.cs:line 1426

The field should be mandatory and Architect shouldn’t allow persisting such rule.