Make sure values are set correctly when inserting event.

For a recurrence, dtend must be null.  This change enforces that,
as well as some other conditions on the value.
Includes unittest.

bug 2513213

Change-Id: I04a1b7bd2f91e579177dd80741b4487409e903fc
2 files changed