Don't hide AttributeError which could occur in model.__setup__

review895002