Throw exception if the definition name is empty