protect against null event pointers

Making default calendar excluded and then creating an event there can cause segfault later on. Problem was loop setting event null, as not found, and then later using the null.

Not entirely sure about many details here. Starting from whether reloading notebooks should happen like that to whether it's best not to clear event pointer.