Allow null values in min/max math functions