Fix crash caused by notifications use-after-free
The KNotification could be deferenced on sendEvent(), so additional checks are required.