Added some null checking to the notifications list to fix probable causes
of NMS-4493.