Only add a MetadataOnly element if no TiffData elements are present (rebased onto dev_5_0)



This is the same as gh-991 but rebased onto dev_5_0.

----

This prevents validation errors for most OME-TIFF files; noticed by @qidane.