Method to preserve the chiral-symmetry protection of the zeroth Landau level on a two-dimensional lattice