WL-3094 Don't create invalid events.

When an events was cancelled twice it would create an invalid event.
Merge pull request #2 from ox-it/WL-3094

WL-3094 Don't create invalid events.