Set data to undefined instead of an empty object
Only attempt to stringify JSON if data is not undefined
Merge branch 'oja-patch-2'
Set content type in base options
Merge branch 'oja-patch-3'