Fix thumbnails breaking when the thumbnail file doesn't exist
This is currently an issue with this gallery: https://taktlaus.no/fotoarkiv/smash-kristiansand-v22-2/. Not quite sure how the thumbnail file can end up not existing... but this should solve the issue temporarily, at least.