Index: wp-includes/query.php
===================================================================
--- wp-includes/query.php	(revision 19534)
+++ wp-includes/query.php	(working copy)
@@ -104,6 +104,11 @@
  * @uses $wp_query
  */
 function wp_reset_query() {
+	if ( ! isset( $GLOBALS['wp_the_query'] ) ) {
+		_doing_it_wrong( __FUNCTION__, __( 'wp_reset_query() does not work before the query is run.' ), '3.3' );
+		return;
+	}
+
 	unset($GLOBALS['wp_query']);
 	$GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
 	wp_reset_postdata();
