Fix read from closed input stream

Apparently EntityUtils.toString consumes the entity's content stream, and calling twice results in error

This was already fixed in the metadata-mgmt app here (https://github.com/lightblue-platform/lightblue-applications/pull/17), but this will soon replace that repo's client code