On the effect of non-gravitational processes on the dynamics of nearly parabolic comets