Properly close JSON String when an IOException is thrown because the first byte can't be read

If the first byte from reading an InputStream can't be read, an IOException will be thrown and the resulting JSON string will not have the ending '"'.