Index: wp-includes/default-constants.php
===================================================================
--- wp-includes/default-constants.php	(revision 21921)
+++ wp-includes/default-constants.php	(working copy)
@@ -277,6 +277,10 @@
  * @since 3.0.0
  */
 function wp_templating_constants( ) {
+	$theme = wp_get_theme();
+	if ( $theme->errors() )
+		wp_die( $theme->errors()->get_error_message() );
+
 	/**
 	 * Filesystem path to the current active template directory
 	 * @since 1.5.0
