catch NPE when an instance has no parent and assign default parent name
instead