Fixed an AttributeError if the input data has no name.