Added an additional query to correctly calculate rollups for records where all child records have been deleted