findMinMax was returning a confusing value for empty raster