diff --git a/includes/plugins.inc b/includes/plugins.inc
index 0363fcb..a0cd019 100644
--- a/includes/plugins.inc
+++ b/includes/plugins.inc
@@ -550,8 +550,10 @@ function _ctools_list_themes() {
     $themes = $active = array();
     $all_themes = list_themes();
     foreach ($all_themes as $name => $theme) {
-      // Only search from active themes
-      if (empty($theme->status) && $theme->name != $current) {
+      // Skip themes that are currently disabled. If in maintenance mode,
+      // $theme->status is always 0. Checked for the existence of
+      // $theme->schema_version to ensure the status came from the database.
+      if (isset($theme->schema_version) && empty($theme->status) && $theme->name != $current) {
         continue;
       }
       $active[$name] = $theme;
