Fix data missing bug in order by null first

I changed setMaxRangeIfNull() method to set NULL as minimum value when null first is set