Fix incorrect duration reporting in CDRs created in batch mode