Update average loss formula

Addresses https://bugs.launchpad.net/openquake/+bug/1156557