Fixed a missing loss_type in export_loss_fraction_xml

See https://bugs.launchpad.net/oq-engine/+bug/1287230

We need to add a test for this functionality and to make sure that the same mistakes is not repeated in other exporters.