Fixed #23112 -- Field.get_choices tries to index an iterable