Index: wp-includes/class-wp-term.php
===================================================================
--- wp-includes/class-wp-term.php	(revision 40569)
+++ wp-includes/class-wp-term.php	(working copy)
@@ -142,6 +142,11 @@
 
 			// If a taxonomy was specified, find a match.
 			if ( $taxonomy ) {
+
+				// Clear out the cached term since it does not have the
+				// matching taxonomy.
+				$_term = false;
+
 				foreach ( $terms as $match ) {
 					if ( $taxonomy === $match->taxonomy ) {
 						$_term = $match;
@@ -182,6 +187,7 @@
 			$_term = sanitize_term( $_term, $_term->taxonomy, 'raw' );
 
 			// Don't cache terms that are shared between taxonomies.
+			var_dump(count($terms));
 			if ( 1 === count( $terms ) ) {
 				wp_cache_add( $term_id, $_term, 'terms' );
 			}
