Only throw exception of input stream is null.

git-svn-id: https://svn.code.sf.net/p/genoviz/code/trunk@15829 80d5a9c2-7d8c-4c9f-9369-4e03bca4d2bd
Merge remote-tracking branch 'upstream'