Pdf script perms fixes

Fixes a couple of issues when images in a figure are in different groups:

 - Adding Thumbnails to the figure happens with setOmeroGroup(-1) to make sure all are accessible.
 - We wrap the saving of FileAnntationLinks in a try/except, in case some of the images are in a different group or can't be annotated for some reason.