If there's a 0px by 0px image in the **image** search results, then MediaSearch breaks
Examples:
https://commons.wikimedia.org/w/index.php?search=30bytes&title=Special:MediaSearch&go=Go&type=image
https://commons.wikimedia.org/w/index.php?search=PNG_Test&title=Special:MediaSearch&go=Go&type=image
(the files [[ https://commons.wikimedia.org/wiki/File:PNG_Test.png | PNG_Test.png ]] and [[ https://commons.wikimedia.org/wiki/File:30bytes.gif | 30bytes.gif ]] are 0px by 0px images)
It's fine if you're searching for audio:
https://commons.wikimedia.org/w/index.php?search=Haunu&title=Special:MediaSearch&go=Go&type=audio
(the single file in the results is an audio file, and therefore has height and width == 0)
This breaks the "more results" functionality [[ https://commons.wikimedia.org/wiki/Special:MediaSearch?type=image&search=test | if you're searching for "test" ]]
Note that there are 12 out of 73267622 images on commons currently that are 0px in height, so this might not be very urgent
I'd guess the problem is `ImageHandler::validateThumbParams()` which fails if an image's width is zero