Fix a crash with creating nil-named entities

[Deliver #43156909]