Fix null context in event object.