Now hazard calculations can be deleted safely

This solved the bug https://bugs.launchpad.net/oq-engine/+bug/1340768.
The tests are running here: https://ci.openquake.org/job/zdevel_oq-engine/481