Index: wp-includes/theme.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- wp-includes/theme.php	(revision d11514485719f41469daff6cde3f3006bd35b58a)
+++ wp-includes/theme.php	(revision )
@@ -718,7 +718,10 @@
 		$default_theme_mods = (array) get_option( 'mods_' . $new_name );
 		if ( ! empty( $nav_menu_locations ) && empty( $default_theme_mods['nav_menu_locations'] ) ) {
 			$default_theme_mods['nav_menu_locations'] = $nav_menu_locations;
+		} else {
+			$default_theme_mods = get_option( 'theme_mods_' . $template, array() );
 		}
+
 		add_option( "theme_mods_$stylesheet", $default_theme_mods );
 	} else {
 		/*
