diff --git a/acquia_contenthub.install b/acquia_contenthub.install
index 3b6f974c..9046528a 100644
--- a/acquia_contenthub.install
+++ b/acquia_contenthub.install
@@ -24,6 +24,9 @@ function acquia_contenthub_update_82001() {
   $client_factory = \Drupal::service('acquia_contenthub.client.factory');
   $settings = $client_factory->getSettings();
   $client = $client_factory->getClient($settings);
+  if(empty($client)) {
+    return;
+  }
   $remote = $client->getRemoteSettings();
   $admin_settings->set('shared_secret', $remote['shared_secret']);
 
