Gluon propagator and zero-momentum modes in SU(2) lattice gauge theory