diff --git a/core/lib/Drupal/Core/Render/Element/Actions.php b/core/lib/Drupal/Core/Render/Element/Actions.php
index 2e75165..971b55b 100644
--- a/core/lib/Drupal/Core/Render/Element/Actions.php
+++ b/core/lib/Drupal/Core/Render/Element/Actions.php
@@ -32,12 +32,16 @@ class Actions extends Container {
   public function getInfo() {
     $class = get_class($this);
     return [
+      '#optional' => FALSE,
       '#process' => [
         // @todo Move this to #pre_render.
         [$class, 'preRenderActionsDropbutton'],
         [$class, 'processActions'],
         [$class, 'processContainer'],
       ],
+      '#pre_render' => [
+        [$class, 'preRenderContainer'],
+      ],
       '#weight' => 100,
       '#theme_wrappers' => ['container'],
     ];
