Refactor: in sendRequest() skip allocating a body if the object is nil
Refactor: in sendRequest() skip allocating a body if the object is nil

Signed-off-by: Bryan Boreham <de652539b24efdf404b95def4635bf3dbfd846aa@gmail.com>

thaJeztah/engine-api,vdemeester/engine-api,jwhonce/engine-api,docker/engine-api