fix #36186 : crash when pasting with left-over portion spanning over an ...

...invalid duration