Index: theme.php
===================================================================
--- theme.php	(revision 13211)
+++ theme.php	(working copy)
@@ -624,7 +624,7 @@
 	if ($stylesheet_or_template) {
 		$theme_roots = get_theme_roots();
 
-		if ( $theme_roots[$stylesheet_or_template] )
+		if ( !empty( $theme_roots[$stylesheet_or_template] ) )
 			$theme_root = WP_CONTENT_DIR . $theme_roots[$stylesheet_or_template];
 		else
 			$theme_root = WP_CONTENT_DIR . '/themes';
