[nemo-qml-plugin-calendar] Protect cache against null events

Event pointers can end up null, e.g. because of being created with
unloaded/invalid notebook. Avoid crashing on those.