Trapping in the multiphoton Jaynes-Cummings model