Avoid 'Unexpected end of input' error

* /api/log_events service returns an empty body, so 'dataType: "json"'
  didn't work