fix(pretty-format): handle tagName
not being a string
#10397
Merged
tagName
not being a string
#10397