Attempt to correct invalid metadata in OME-XML/OME-TIFF files

This fills in commonly missing required values with defaults, in the hope of making invalid OME-XML and OME-TIFF files importable by OMERO.

Similar pull requests will be filed on dev_4_4 and develop once this is merged.