Fix EZP-22840: also apply to $target in subtree limitation