Coherence and catalysis in the Jaynes–Cummings model