diff --git a/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php b/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php
index 4a3bf10..121d2de 100644
--- a/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php
+++ b/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php
@@ -54,8 +54,10 @@ public function execute() {
     // display, and arguments should be set on the view.
     $element = $this->view->render();
     if (!empty($this->view->result) || $this->getOption('empty') || !empty($this->view->style_plugin->definition['even empty'])) {
-      return drupal_render($element);
+      return $element;
     }
+
+    return array();
   }
 
   /**
diff --git a/core/modules/views/lib/Drupal/views/Plugin/Block/ViewsBlock.php b/core/modules/views/lib/Drupal/views/Plugin/Block/ViewsBlock.php
index 2c0481e..0fca07e 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/Block/ViewsBlock.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/Block/ViewsBlock.php
@@ -11,6 +11,7 @@
 use Drupal\Component\Annotation\Plugin;
 use Drupal\Core\Annotation\Translation;
 use Drupal\Core\Entity\EntityStorageControllerInterface;
+use Drupal\Component\Utility\Xss;
 
 /**
  * Provides a generic Views block.
@@ -73,19 +74,13 @@ public function form($form, &$form_state) {
    * {@inheritdoc}
    */
   public function build() {
-    if ($output = $this->view->executeDisplay($this->displayID)) {
-      $output = $this->view->executeDisplay($this->displayID);
-      // Set the label to the title configured in the view.
-      $this->configuration['label'] = filter_xss_admin($this->view->getTitle());
-      // Before returning the block output, convert it to a renderable array
-      // with contextual links.
-      $this->addContextualLinks($output);
-
-      $this->view->destroy();
-      return $output;
-    }
-
-    return array();
+    $output = $this->view->executeDisplay($this->displayID);
+    // Set the label to the title configured in the view.
+    $this->configuration['label'] = Xss::filterAdmin($this->view->getTitle());
+    // Before returning the block output, convert it to a renderable array
+    // with contextual links.
+    $this->addContextualLinks($output);
+    return $output;
   }
 
   /**
