Fixed uncleaned forinifcheckneeded after forin check reach the maxerr limit.

if last `forin` check reach the maxerr limit, the check will be quit left
the uncleaned `state.forinifcheckneeded` and the empty `state.forinifchecks`.
That cause the next `if` check access the wrong index of the empty `state.forinifchecks` array.