Empty g elements are removed since they have no effect in a document.