Resetting a recurring series does not prevent collisions

Hi,

Collisions are not checked when a recurring series is “reset” (by saving the series) and a new event already exists at a previously deleted recurrence’s time:

https://snippet.dhtmlx.com/mr9w9tiw

Steps to reproduce:

  1. Delete an occurence
  2. Create a new event in its place
  3. Edit the series (no modifications needed, just click “save”)

Result:
Resets the series and (re)places the deleted occurrence next to the newly created event (does not respect limits / does not prevent collision)

Expected result:
Does not allow series save / reset.

Obviously, this does not fire onEventCollision. Workaround appreciated.