db/models:
db/models:

Fixed the logic in Output.hazard_metadata to handle more cases.

I'm still not sure if it covers all cases (haz output or haz calc,
loss curve or loss_map, etc.), but at least this reduces crashes during
XML serialization due to missing metadata.

gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine