**Describe the bug**
https://clickhouse-test-reports.s3.yandex.net/19702/c74631c650b42e4d107254a03bd82c2c2913039b/fuzzer_msan/server.log

Most likely introduced here: #11006
return;
    }
    bool has_value = false;
    /** Skip all NaNs in extremes calculation.
        * If all values are NaNs, then return NaN.
        * NOTE: There exist many different NaNs.
        * Different NaN could be returned: not bit-exact value as one of NaNs from column.
        */
    T cur_min = NaNOrZero<T>();
    T cur_max = NaNOrZero<T>();
    for (FastRefT x : data)
    {
        if (isNaN(x))
            continue;
        if (!has_value)
        {
            cur_min = x;
            cur_max = x;
            has_value = true;
            continue;
        }
        if (x < cur_min)
            cur_min = x;
        else if (x > cur_max)
            cur_max = x;
    }
    min = NearestFieldType<T>(cur_min);
    max = NearestFieldType<T>(cur_max);
}
template class ColumnVector<UInt8>;