GMPE logic tree fix

This solves an issue with the SHARE logic tree, see
The tests are green: https://ci2.openquake.org/job/zdevel_oq-commonlib/37