Stability in an overdetermined problem for the Green's function