Fix PHP warning in notification class

* Fix PHP Warning if no notification settings exist yet

Fixes #346
Merge pull request #351 from TheSerapher/issue-346

Fix PHP warning in notification class