Fix for resize after dragging external event

After dragging an event in the calendar, this method throws an exception when resizing the event.