Fix restore hazards

See https://bugs.launchpad.net/oq-engine/+bug/1189772