Fix a problem with NULL handling in aggregate min/max when returning values from the row containing the min or max. FossilOrigin-Name: f27c7b4fb193126548e6a620ac89664d1efa3856