diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index beb3dcc52a..a8751f1231 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -1417,6 +1417,9 @@ function get_compat_media_markup( $attachment_id, $args = null ) {
$item .= '' . "\n";
}
+ if ( $item )
+ $item = '' . $item;
+
return array(
'item' => $item,
'meta' => $media_meta,