Only add a MetadataOnly element if no TiffData elements are present

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