Added explicit checks for null and undefined in the unwrappedData.sort function

Otherwise, zeroes were passing, and not getting properly sorted