Text this: On the accurate computation of expected modularity in probabilistic networks