The OUTLINER_OT_item_activate operator, although it detects when
something changes, always returns OPERATOR_FINISHED and thus induces
the creation of undo steps.
This patch proposes to return OPERATOR_CANCELLED when nothing changes.
NOTE: Operator behavior was improved in rB9a9a663f40d55e1f94d23029ed3962b21f8aaca2 but the issue of undo steps was not considered.
Ref T94080