fixing issue with IE sending "undefined" in the body of POST, PUT or DELETE request if no data is set to the request