Stabilization of ratchet dynamics by weak periodic signals