speculate: correctly handle `iters` == 0

If the user is dumb and specifies zero iterations, check to make sure we
don't try to access an invalid array index.