Fixes to the Event Based Calculator

Addresses https://bugs.launchpad.net/openquake/+bug/1160993

Requires https://bugs.launchpad.net/openquake/+bug/1160845