Fixed a bug where DeleteDuplicates crashed when given an empty list as argument.