diff --git a/sites/all/modules/contrib/panelizer/panelizer.install b/sites/all/modules/contrib/panelizer/panelizer.install
index 19f8aef..c9546bf 100644
--- a/sites/all/modules/contrib/panelizer/panelizer.install
+++ b/sites/all/modules/contrib/panelizer/panelizer.install
@@ -1194,11 +1194,15 @@ function panelizer_update_7300(&$sandbox) {
       }
     }
 
-    // Delete panelizer records that have one of the default names.
-    $deleted = db_delete('panelizer_entity')
-      ->condition('name', $default_names, 'IN')
-      ->condition('entity_type', $entity_type)
-      ->execute();
+    $deleted = 0;
+    if (count($default_names)) {
+      // Delete panelizer records that have one of the default names.
+      $deleted = db_delete('panelizer_entity')
+        ->condition('name', $default_names, 'IN')
+        ->condition('entity_type', $entity_type)
+        ->execute();
+    }
+
     if ($deleted > 0) {
       watchdog('panelizer', '@count default panelizer records were removed for entity type: @entity_type.', array('@count' => $deleted, '@entity_type' => $entity_type));
     }
