Client Script Invocation Rule accesses unchanged data for rule evaluation

When using Client Script to invoke a custom script action after executing a workflow action, and setting a condition using Rule, I expect the rule to evaluate the data after the action was performed.

Instead the rule accesses data at the right time (after action) but in the state of before the action was executed.

The reason is that SelectedRows is an array to which rows are copied before executing the action:

We need to re-evaluate the data and pass the current state before evaluating Client Script rules.