Incorrect variable is used to check whether thumbnail exists

Dear @phihag

I believe in line 848, the correct variable to check is 'thumb_filename' rather than 'infofn'

Kindly advise

Mit freundlichen Gruessen
Ali
Merge pull request #1984 from alimirjamali/patch-1

Incorrect variable is used to check whether thumbnail exists