trq-2538 Keep iterator in sync with container when removing jobs.