Update Event Based algorithm

Addresses https://bugs.launchpad.net/oq-risklib/+bug/1168446