Hides thumbnail on image error

If the thumbnail cannot load, it will be hidden.