Add check on twitterstream output in script
Avoid NPE in ExampleProcessingChainTests tearDown

This was possible in the case that the application did not successfully start, so that the 'application' var itself would still be null when invoked in the tearDown method.