Restored code accidentally removed [skip hazardlib]
Restored code accidentally removed [skip hazardlib]


Former-commit-id: bfe66d37b0173b06741a473bbc877f51b310d93b
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine