NPE Thumbnails

This possible NPE when no pixels associated to an image. 
This is already in develop
To test:
 * Log as root
 * expand the "orphaned images" smart folder
 * No error.

see https://trac.openmicroscopy.org.uk/ome/ticket/11879

--no-rebase