Fixed the issue with sequences in restore_hazards.py

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