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).
Merge pull request #498 from xelaris/patch-1

Fix processing of _thumbnailQueue on errors.