Ref gh-240. In 1.9, empty ajax response is not valid JSON.