cpp: tiff: Remove unnecessary ternary in IFD makeCoreMetadata