Fixed preparing params for request

I did this changes because old version of this function:

protected function getBody()
{
  $body = json_encode($this->addresses);
  return $body;
}

returned empty structure - "[{},{}]" - data were lost. And we hadn't successfull response