Bugfixes for 5 0 4

Several minor bugs that need to be back-ported into 5.0.4.

To test:
 - Rename a Project or Dataset. On save, check that name is updated in the tree.
 - Search for images that are NOT in your current group. In the search results:
     - Create and download OME-TIFF. Check that script completes with no errors and downloads OK.
     - Run Thumbnails Figure or Split-View Figure scripts (top toolbar of right panel)
 - Choose an image that has a single 'imported' / original file. Rename the image, adding a comma into the name. Now try to download the original file.