Closes #71 Check for null stream