Properly handle unknown self-close tags
Merge pull request #5823 from adobe/nj/issue-5822

Properly handle unknown self-close tags