isValidReference substituted with isValidNameRegion in getDefinedNames