Give parent items a name if it was just created.

Prevents empty items from appearing in the UI if flushed.