Convergence of the multimode quantum Rabi model of circuit quantum electrodynamics