Index: media.php
===================================================================
--- media.php	(revision 36322)
+++ media.php	(working copy)
@@ -1081,6 +1081,10 @@
 	 */
 	foreach ( $image_sizes as $image ) {
 
+		if ( ! is_array( $image ) ) {
+			continue;
+		}
+		
 		// If the file name is part of the `src`, we've confirmed a match.
 		if ( ! $src_matched && false !== strpos( $image_src, $dirname . $image['file'] ) ) {
 			$src_matched = true;
