Make sure to return only non-nil notifications (Fix for #133)