Add assertion to getThumbnail

On develop, the direct=False, size=96 methods are failing for
security reasons:

```
ome.conditions.InternalException: Fatal error retrieving thumbnail metadata
```