Small changes to the segment.io event handler
Merge pull request #5527 from mulby/tweak-segment-io-endpoint

Small changes to the segment.io event handler