Minor cleanup, check for a valid slice count when computing the progress.