Bug: 13322 Don't attempt to build a DOM from an empty part.