VID-1767 Add extra logging to updateThumbnailTask

We need this script to return a non-zero exit status if there were any errors so that $exitStatus is properly set when called from UpdateThumbnailTask.