Remove all empty properties to reduce total size of the object.
The DomItem with properties to check for empty.
Optional array of additional property names to remove.
Remove all empty properties to reduce total size of the object.