Index: HideRevision.php
===================================================================
--- HideRevision.php	(revision 21987)
+++ HideRevision.php	(working copy)
@@ -611,8 +611,12 @@
 					'rows' => 25,
 					'wrap' => 'virtual',
 					'readonly' => 'readonly' ),
-				$text) .
-			"</div>" );
+				$text) );
+			if($text==''){
+				$wgOut->addHtml("</textarea></div>");
+			}else{
+				$wgOut->addHtml("</div>");
+			}
 		}
 	}
 	$dbr->freeResult( $result );
