Genex: Restore REMOVE_DUPLICATES preservation of empty elements
Refactoring in !8375 (merged) accidentally caused empty elements to be dropped by the REMOVE_DUPLICATES
genex. Fix it and add a test case.
Fixes: #25080 (closed)
Backport: release
Refactoring in !8375 (merged) accidentally caused empty elements to be dropped by the REMOVE_DUPLICATES
genex. Fix it and add a test case.
Fixes: #25080 (closed)
Backport: release