MULE-6969: InputStream not closed on Scriptable
(cherry picked from commit b4fe03b)