[analysis][threads] Fix error in counting people associated to an email