Fix possibility of divide by zero in rechunking.