Make sure name generator can handle tree items without a name