Index: src/js/_enqueues/wp/theme.js
===================================================================
--- src/js/_enqueues/wp/theme.js	(revision 44983)
+++ src/js/_enqueues/wp/theme.js	(working copy)
@@ -180,6 +180,9 @@
 		// Start with a full collection
 		this.reset( themes.data.themes, { silent: true } );
 
+		// Trim the term
+		term = term.trim();
+
 		// Escape the term string for RegExp meta characters
 		term = term.replace( /[-\/\\^$*+?.()|[\]{}]/g, '\\$&' );
 
