Fix to prevent the  obj. instance method from sending the resource as the request body.

This commit uses the existing hasBody boolean to only set httpConfig.data for methods which should have a request body. (https://github.com/angular/angular.js/issues/4280)