Issue #1619446 by Niklas Fiekas: Fixed All autocomplete and drupal_json_output() responses are broken (returning Ajax instead of JSON).