Handle case where a chain has no steps after pruning

(for example, due to a repeated failure of the integrator to converge)