Avoid duplicate tweets in the twitter-stats script

Copied over from TweetFeatureExtractor.