Reflected the API change in refactor-risk-model

See https://github.com/gem/oq-risklib/pull/70. Tests running here: https://ci2.openquake.org/job/zdevel_oq-engine/392