diff --git a/core/misc/ajax.js b/core/misc/ajax.js
index d6b62eb4f232f7877c845e68e03f3d20d5de94b6..b00e162e95e980bab0daa81bafab85f43be5dc4f 100644
--- a/core/misc/ajax.js
+++ b/core/misc/ajax.js
@@ -1896,7 +1896,7 @@
       xhr.getResponseHeader('X-Drupal-Ajax-Token') === '1' &&
       // The isInProgress() function might not be defined if the Ajax request
       // was initiated without Drupal.ajax() or new Drupal.Ajax().
-      settings.isInProgress &&
+      typeof settings.isInProgress === 'function' &&
       // Until this is false, the Ajax request isn't completely done (the
       // response's commands might still be running).
       settings.isInProgress()