Fix bug 1142200 '[Fortify Scan] Unreleased Resource: Streams (Code Quality, Control flow) - RestClient'.