Test for stream existence before creation to fix #109