Reflected the API change in risklib

This fixes the test breaking in Jenkins: https://ci.openquake.org/job/master_oq-commonlib/106/