Raise NoMethodError for nested objects as well