diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js
index aff81b7..dd3b1de 100644
--- a/wp-includes/js/media-views.js
+++ b/wp-includes/js/media-views.js
@@ -2025,6 +2025,10 @@
 				previous = lastState && lastState.id,
 				frame = this;

+			// If no previous state, we can assume the user is editing an existing
+			// playlist, don't add a cancel link.
+			if ( ! previous )
+				return;
 			view.set({
 				cancel: {
 					text:     l10n.cancelGalleryTitle,
@@ -2049,6 +2053,10 @@
 				previous = lastState && lastState.id,
 				frame = this;

+			// If no previous state, we can assume the user is editing an existing
+			// playlist, don't add a cancel link.
+			if ( ! previous )
+				return;
 			view.set({
 				cancel: {
 					text:     l10n.cancelPlaylistTitle,
@@ -2073,6 +2081,10 @@
 				previous = lastState && lastState.id,
 				frame = this;

+			// If no previous state, we can assume the user is editing an existing
+			// playlist, don't add a cancel link.
+			if ( ! previous )
+				return;
 			view.set({
 				cancel: {
 					text:     l10n.cancelVideoPlaylistTitle,
