diff --git a/src/Plugin/BootstrapStyles/Style/BackgroundColor.php b/src/Plugin/BootstrapStyles/Style/BackgroundColor.php
index bd8259a..b9a7ee5 100644
--- a/src/Plugin/BootstrapStyles/Style/BackgroundColor.php
+++ b/src/Plugin/BootstrapStyles/Style/BackgroundColor.php
@@ -103,8 +103,13 @@ class BackgroundColor extends StylePluginBase {
    */
   public function build(array $build, array $storage, $theme_wrapper = NULL) {
     $classes = [];
+
     // Backwards compatibility for layouts created on the 1.x version.
-    $background_type = $storage['background']['background_type'];
+    $background_type = '';
+    if (!empty($storage['background']) && !empty($storage['background']['background_type'])) {
+      $background_type = $storage['background']['background_type'];
+    }
+
     if ($background_type == 'color'
       || $background_type == '') {
       $background_type = 'color';
@@ -119,7 +124,7 @@ class BackgroundColor extends StylePluginBase {
       $classes = [$storage['background_color']['class'], 'bg-color'];
     }
 
-    if ($storage['background']['background_type'] !== 'video') {
+    if (!empty($storage['background']) && $storage['background']['background_type'] !== 'video') {
       // Add the classes to the build.
       $build = $this->addClassesToBuild($build, $classes, $theme_wrapper);
     }
