fixed bug with util.uniques when trying to get a value from undefined