diff --git a/core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php b/core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php
index 3169a35..d2f4f63 100644
--- a/core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php
+++ b/core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php
@@ -46,7 +46,7 @@ public function __construct(Settings $settings = NULL, $consistent_service_name
     // Default the consistent backend to the site's default backend.
     if (!isset($consistent_service_name)) {
       $cache_settings = isset($settings) ? $settings->get('cache') : [];
-      $consistent_service_name = isset($cache_settings['default']) ? $cache_settings['default'] : 'cache.backend.database';
+      $consistent_service_name = isset($cache_settings['default']) && \Drupal::hasService($cache_settings['default']) ? $cache_settings['default'] : 'cache.backend.null';
     }
 
     // Default the fast backend to APCu if it's available.
