Fix a "reproducibility" issue when getting hazard sites from exposure

Addresses https://bugs.launchpad.net/openquake/+bug/1163818