Fix axis min/max to never save NaNs