skip NULL values in `remove_duplicates`