The first condition will result in nothing/null and the second condition will result in the deduplicated array, and you’re using a Text operator. Right now it is basically reading “filter this through if nothing contains something”, which won’t work.
Maybe you just need to not use Group By in your first aggregator, then use deduplicate on the output of that Array Aggregator?