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