Fix a infinite recursion when discovering PromotedFields.