InputStream null check.