Fixed bug in the distribution of the realizations logic

This bug is affecting the data set generated by the scenario_hazard calculator in the Katmandu example (the rows with empty arrays).