WL-3094 Don't create invalid events.

When an events was cancelled twice it would create an invalid event.