Avoid pointless probing for nonexisting thumbnail images
QImage::load() tries to find a fallback image if the file does not exist, by appending extensions of all supported file formats, as QImageReader defaults to format autodetection.
Check if the file exists, and only then try to load it.