Fixes bug in _update_min_max

In the case of a scalar value, the masked array was not guaranteed to be at least a 1d array...