Fixed deprecation warning on hazard writer
Fixed deprecation warning on hazard writer


Former-commit-id: 5e7d2940d3fa2314fccb997eb1286f0085faf051
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine