diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
index 3259815..3234cdf 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
@@ -2465,10 +2465,24 @@ public function render() {
     return $element;
   }
 
+  /**
+   * Render one of the available areas.
+   *
+   * @param string $area
+   *   Identifier of the specific area to render.
+   * @param bool $empty
+   *   (optional) Indicator whether or not the view result is empty. Defaults to
+   *   FALSE
+   *
+   * @return array
+   *   A render array for the given area.
+   */
   public function renderArea($area, $empty = FALSE) {
-    $return = '';
-    foreach ($this->getHandlers($area) as $area) {
-      $return .= $area->render($empty);
+    $return = array();
+    foreach ($this->getHandlers($area) as $key => $area_handler) {
+      $render = $area_handler->render($empty);
+      // Ensure we will handle a valid render array.
+      $return[$key] = is_array($render) ? $render : array('#markup' => $render);
     }
     return $return;
   }
diff --git a/core/modules/views/templates/views-view.tpl.php b/core/modules/views/templates/views-view.tpl.php
index 05ce4c7..ca8faef 100644
--- a/core/modules/views/templates/views-view.tpl.php
+++ b/core/modules/views/templates/views-view.tpl.php
@@ -35,7 +35,7 @@
   <?php print render($title_suffix); ?>
   <?php if ($header): ?>
     <div class="view-header">
-      <?php print $header; ?>
+      <?php print render($header); ?>
     </div>
   <?php endif; ?>
 
@@ -57,7 +57,7 @@
     </div>
   <?php elseif ($empty): ?>
     <div class="view-empty">
-      <?php print $empty; ?>
+      <?php print render($empty); ?>
     </div>
   <?php endif; ?>
 
@@ -77,7 +77,7 @@
 
   <?php if ($footer): ?>
     <div class="view-footer">
-      <?php print $footer; ?>
+      <?php print render($footer); ?>
     </div>
   <?php endif; ?>
 
