Changed the null values to undefined so that it would pass the isUndefined() check properly.