rest_client: avoid loading empty body as json
rest_client: avoid loading empty body as json

Methods below should not call response.json() if response
body is empty. Otherwise, an exception will be raised.
  - get()
  - put()
  - post()
  - patch()

yosshy/osclient2,yosshy/osclient2