Fix and Improvement in "notification_generate"

There was a bug that made no custom sound was played. Also now if the
system sound is disabled but a sound is set, the sound system is enabled
just for the notification.