Index: src/wp-content/themes/twentyfifteen/inc/template-tags.php
===================================================================
--- src/wp-content/themes/twentyfifteen/inc/template-tags.php	(revision 40913)
+++ src/wp-content/themes/twentyfifteen/inc/template-tags.php	(working copy)
@@ -97,7 +97,7 @@
 		}
 
 		$tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) );
-		if ( $tags_list ) {
+		if ( $tags_list && ! is_wp_error( $tags_list ) ) {
 			printf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
 				_x( 'Tags', 'Used before tag names.', 'twentyfifteen' ),
 				$tags_list
Index: src/wp-content/themes/twentyseventeen/inc/template-tags.php
===================================================================
--- src/wp-content/themes/twentyseventeen/inc/template-tags.php	(revision 40913)
+++ src/wp-content/themes/twentyseventeen/inc/template-tags.php	(working copy)
@@ -84,7 +84,7 @@
 							echo '<span class="cat-links">' . twentyseventeen_get_svg( array( 'icon' => 'folder-open' ) ) . '<span class="screen-reader-text">' . __( 'Categories', 'twentyseventeen' ) . '</span>' . $categories_list . '</span>';
 						}
 
-						if ( $tags_list ) {
+						if ( $tags_list && ! is_wp_error( $tags_list ) ) {
 							echo '<span class="tags-links">' . twentyseventeen_get_svg( array( 'icon' => 'hashtag' ) ) . '<span class="screen-reader-text">' . __( 'Tags', 'twentyseventeen' ) . '</span>' . $tags_list . '</span>';
 						}
 
Index: src/wp-content/themes/twentysixteen/inc/template-tags.php
===================================================================
--- src/wp-content/themes/twentysixteen/inc/template-tags.php	(revision 40913)
+++ src/wp-content/themes/twentysixteen/inc/template-tags.php	(working copy)
@@ -101,7 +101,7 @@
 	}
 
 	$tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentysixteen' ) );
-	if ( $tags_list ) {
+	if ( $tags_list && ! is_wp_error( $tags_list ) ) {
 		printf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
 			_x( 'Tags', 'Used before tag names.', 'twentysixteen' ),
 			$tags_list
Index: src/wp-content/themes/twentyten/functions.php
===================================================================
--- src/wp-content/themes/twentyten/functions.php	(revision 40913)
+++ src/wp-content/themes/twentyten/functions.php	(working copy)
@@ -536,7 +536,7 @@
 function twentyten_posted_in() {
 	// Retrieves tag list of current post, separated by commas.
 	$tag_list = get_the_tag_list( '', ', ' );
-	if ( $tag_list ) {
+	if ( $tag_list && ! is_wp_error( $tag_list ) ) {
 		$posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
 	} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
 		$posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
