Ignore Invalid metadata values
If a metadata entry like UserComment has an Undefined type, we cannot reasonably read or write it, so let's ignore those entries.