Fix undefined variable name in `PaginatedChoiceState.shorten_choices`.