vlc-thumb: fix error handling

If the thumbnail fails, the returned picture is NULL. It is handled that way in
the snapshot() function. But libvlc_picture_retain() doesn't handle NULL
pictures.
20 jobs for !3159 with null-thumbnail in 14 minutes and 29 seconds (queued for 3 seconds)
latest merge request