Made avg_losses optional
Made avg_losses optional


Former-commit-id: d1482a75719100227f6587b9b202e0442a73a940 [formerly d1482a75719100227f6587b9b202e0442a73a940 [formerly 7901ce82e390af8166b211770bc9ccb7453df862]]
Former-commit-id: 42bc5a859dcf48e143dc9f9c3da3e9f08be2116c
Former-commit-id: 86456440edb28e3a469de556f9be70cb3b9fc932
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine