Fixed an invalid memory read in the infomap community detection.
Infomap community detection: avoid calling RNG_END() multiple times.