Fix exception caused by 3f6c64d

If metadata.length is 0, it's Falsy and not added to the tagdiff stuff. This
stores it as a str because it's simpler than adding `or value != 0`
everywhere.