handle nil events. Only seems to be an issue in test with bad data