Index: src/wp-includes/media.php
===================================================================
--- src/wp-includes/media.php	(revision 34925)
+++ src/wp-includes/media.php	(working copy)
@@ -999,8 +999,8 @@
 		list( $img_width, $img_height ) = image_constrain_size_for_editor( $img['width'], $img['height'], $size );
 	}
 
-	// Bail early if $image_width isn't set.
-	if ( ! $img_width ) {
+	// Bail early if $img_width isn't set.
+	if ( empty( $img_width ) ) {
 		return false;
 	}
 
