Fix saving files with extreme aspect ratio
Saving failed because thumbnail generation didn't take into account that scaling a QSize with KeepAspectRatio may round one dimension down to zero. This caused even the recovery path to generate an invalid thumbnail image and saving aborted. BUG:460624