Deal with calendar being null
Useful for running the KMail itinerary plugin unit tests without requiring Akonadi.