Notifications: Fix error when KNotifications is not used

Closes #400
3 jobs for master in 3 minutes and 4 seconds (queued for 5 seconds)
Status Name Job ID Coverage
  Test
passed build #149272

00:01:03

passed clazy #149270

00:01:37

passed qmllint #149271

00:00:23