Fixed #21753 -- Raised exception when both `form_class` and `fields` are specified.