Stability for semilinear variational inequalities depending on the gradient