allow ajax.data to be undefined. fixes #732