Stabilizing effects of limiter-generated currents in the TO-2 tokamak