Incorrect calculation of break deduction when time pairs are mutated

Task #11960

 

An error in break time calculation has been fixed. It occurred after emptying recorded rows.