Core: Fix error thrown if docs.defaultName
is unset
#23893
Merged
docs.defaultName
is unset
#23893