headers[i] can be null because the job can get null headers if the messages got deleted since the job was issued (possible)