resteasy: catch IllegalStateException on InputStream close

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>