Fix incorrect insertion of empty tasks when time log gin