A theorem on complete intersection curves and a consequence for the Runge problem for analytic sets