Fix for empty opts.data

Fixes cases where opt.data is an empty hash. params would contain a single blank string, causing "undefined" to show up in the post body, eg:

--------multipartformboundary1361198653141
Content-Disposition: form-data; name=""

undefined