Add check on twitterstream output in script