Core/Calendar: Crash fix

Attempt to fix #11512 crash by adding a NULL check since GetEvent() can return NULL.