Applicability of the generalized Gibbs ensemble after a quench in the quantum Ising chain