Merge pull request #1329 from gem/_prep_geometry-fixed

Fixed the _prep_geometry feature of Risk and Hazard calculations
gmf.lt_realization_id can be NULL
Merge pull request #1330 from gem/gmf_realization-fix

gmf.lt_realization_id can be NULL
Merge branch 'master' into remove-parsed_source