Small adaptation to cope with the API changes in risklib

See https://github.com/gem/oq-risklib/pull/77