Decoherence in a dynamical quantum phase transition