diff --git a/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php b/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
index d084b7e43bb4b08a7ebc9e1ce19042c9c9be9252..5884c1eccd37dc5e5aacab559b7ed41e983a13a0 100644
--- a/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
+++ b/lib/Drupal/views/Plugin/views/wizard/WizardPluginBase.php
@@ -750,12 +750,19 @@ protected function default_display_sorts_user($form, $form_state) {
         $column = $column[0];
       }
 
-      $sorts[$column] = array(
-        'id' => $column,
-        'table' => $table,
-        'field' => $column,
-        'order' => $sort,
-      );
+      // If the input is invalid, for example when the #default_value contains
+      // created from node, but the wizard type is another base table, make
+      // sure it is not added. This usually don't happen if you have js
+      // enabled.
+      $data = views_fetch_data($table);
+      if (isset($data[$column]['sort'])) {
+        $sorts[$column] = array(
+          'id' => $column,
+          'table' => $table,
+          'field' => $column,
+          'order' => $sort,
+       );
+      }
     }
 
     return $sorts;