Fix broken thumbs for images without thumbnails.