SVY-7214 when setting a NaN value, we should just set null in the local
storage