Index: modules/system/region.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/region.tpl.php,v
retrieving revision 1.1
diff -u -p -r1.1 region.tpl.php
--- modules/system/region.tpl.php	5 Oct 2009 02:43:01 -0000	1.1
+++ modules/system/region.tpl.php	22 Aug 2010 14:54:05 -0000
@@ -26,6 +26,11 @@
  * @see template_preprocess_region()
  * @see template_process()
  */
+ 
+ // To prevent outputting empty theme wrappers, only continue if $content is filled
+ if (empty($content)) {
+   return;
+ }
 ?>
 <div class="<?php print $classes; ?>">
   <?php print $content; ?>
