fix handling of events with a non-github referrer