Fix the MIN aggregation function with null value wrong answer bug