Fixed JERSEY-1850: InputStream not closed.

Change-Id: Icd83568b6defbfd252881af6e61e11b8da28bd06
Merge "Fixed JERSEY-1850: InputStream not closed."