Change the handling for getAttributeNamesFrom.

The functions "getAttributeNamesFrom" checks if the given name of a metamodels is a valid one.