Notifications: Fix error when KNotifications is not used

Closes #400
3 jobs for master in 3 minutes and 4 seconds (queued for 5 seconds)