Effect of halo on the stability of electron bunches in laser wakefield acceleration