Index: themes.php
===================================================================
--- themes.php	(revision 17521)
+++ themes.php	(working copy)
@@ -82,8 +82,11 @@
 <?php echo esc_html( $title ); ?>
 <?php endif; ?>
 </h2>
-
+<?php
+if((isset($ct->template_dir) && $ct->template_dir) || (isset($wp_list_table->items) && $wp_list_table->items)) {
+?>
 <h3><?php _e('Current Theme'); ?></h3>
+<?php if(isset($ct->template_dir) && $ct->template_dir){ ?>
 <div id="current-theme">
 <?php if ( $ct->screenshot ) : ?>
 <img src="<?php echo $ct->theme_root_uri . '/' . $ct->stylesheet . '/' . $ct->screenshot; ?>" alt="<?php _e('Current theme preview'); ?>" />
@@ -130,7 +133,9 @@
 <?php theme_update_available($ct); ?>
 
 </div>
-
+<?php } else { ?>
+<p><?php _e('Your current theme seems to be removed or misplaced. Please choose from the available themes below to restore functionality to your WordPress installation.'); ?></p>
+<?php } ?>
 <br class="clear" />
 <?php
 if ( ! current_user_can( 'switch_themes' ) ) {
@@ -200,6 +205,13 @@
 <?php $wp_list_table->display(); ?>
 
 </form>
+<?php
+} else {
+?>
+<p><?php sprintf(_e('Currently there are no themes installed which probably means that your WordPress installation is broken. Please install one to restore functionality. Click on the &#8220;Install Themes&#8221; tab and you will be able to browse or search for themes from the <a href="%s" target="_blank">WordPress.org Theme Directory</a>. Themes in the WordPress.org Theme Directory are designed and developed by third parties, and are licensed under the GNU General Public License, version 2, just like WordPress. Oh, and they&#8217;re free!'), 'http://wordpress.org/extend/themes/'); ?></p>
+<?php
+}
+?>
 <br class="clear" />
 
 <?php
