sending note email only to repository users if repository is not null