Fixed restore_hazards_test.py

Fixed a test broken by the change in api. See https://bugs.launchpad.net/oq-engine/+bug/1189772