fixes #6921 exclude null/empty values in email stats