Add a check before emitting the teq instruction to check whether the divisor is a non-zero immediate value. Fix #130629.