Update X-EVOLUTION-ENDDATE before saving changes to events

Outdated X-EVOLUTION-ENDDATE could cause missing instances
of the recurring events, or too many instances being generated.