PLUTO-601 Throw IOException instead of NullPointerException when passed a null InputStream to keep functionality consistent between releases.