Only add a MetadataOnly element if no TiffData elements are present

This prevents validation errors for most OME-TIFF files; noticed by @qidane.
Merge pull request #991 from melissalinkert/metadataonly

Only add a MetadataOnly element if no TiffData elements are present