Core/Calendar: Sanitize calendar event parameters

Prevent events added in the past which in some conditions would cause an infinite loop in the client.