GMPE logic tree fix

This solves an issue with the SHARE logic tree, see https://bugs.launchpad.net/oq-engine/+bug/1328848
The tests are green: https://ci2.openquake.org/job/zdevel_oq-commonlib/37