Fixed a bug with creating new notifications that caused a PHP Notice.