Return valid predicate when duplicate list is empty.
Fixes silly bug introduced in !14 (merged) where, if no duplicates were found, the query would fail with a syntax error.
(We should add a couple of integration tests to the PySpark jobs. Will open a separate ticket for that.)
Bug: T346281