Fix crash if @notifications is nil.