Fix processing of _thumbnailQueue on errors.

Calls the createThumbnail callback on error to process next thumbnail in the queue. Otherwise the thumbnail generation stops, if there is an image, which can not be loaded successfully into an image tag (e.g. image/tiff, image/x-xbitmap).