Do not add NaN features to hash map, and check NaN for transform.