### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

When using the latest docker image, if we define a local secondary index for a dynamodb table and query it, localstack fails with `Index Not Found`

This behaviour is not seen in the previous version of the docker image 0.14.2. I believe this was introduced in a recent change from https://github.com/localstack/localstack/pull/5799

### Expected Behavior

Querying local secondary index should be supported like it previously was

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

#### How are you starting localstack (e.g., `bin/localstack` command, arguments, or `docker-compose.yml`)
docker-compose.yml
```
services:
  localstack:
    image: localstack/localstack:latest
    ports:
      - "443:443"
      - "4566:4566"
      - "4571:4571"
    environment:
      - SERVICES=dynamodb,cloudformation
      - DEFAULT_REGION=eu-west-1
      - START_WEB=false
```

cloudformation-template.yml
```
AWSTemplateFormatVersion: "2010-09-09"
Resources:
  DomainTable:
    Type: AWS::DynamoDB::Table
    Properties:
      AttributeDefinitions:
        - AttributeName: "PK"
          AttributeType: "S"
        - AttributeName: "SK"
          AttributeType: "S"
        - AttributeName: "LSI1SK"
          AttributeType: "N"
      BillingMode: "PAY_PER_REQUEST"
      KeySchema:
        - AttributeName: "PK"
          KeyType: "HASH"
        - AttributeName: "SK"
          KeyType: "RANGE"
      LocalSecondaryIndexes:
        - IndexName: "LSI1"
          KeySchema:
            - AttributeName: "PK"
              KeyType: "HASH"
            - AttributeName: "LSI1SK"
              KeyType: "RANGE"
          Projection:
            ProjectionType: "ALL"
      PointInTimeRecoverySpecification:
        PointInTimeRecoveryEnabled: true
      TableName: "<omitted>"
      Tags:
        - Key: "Name"
          Value: "<omitted>"
      TimeToLiveSpecification:
        AttributeName: "LastTimestamp"
        Enabled: true
```

    docker compose up


### Environment

```markdown
- OS: docker
- LocalStack: latest
```


### Anything else?

_No response_
table_name = table_arn.split("/", 1)[-1]
    table_definitions = DynamoDBRegion.get().table_definitions
    if not result and table_definitions.get(table_name):
        if table_definitions[table_name].get("KinesisDataStreamDestinationStatus") == "ACTIVE":
            result = True
    cache[table_arn] = result
    return result
def get_updated_records(table_name: str, existing_items: List) -> List:
    """
    Determine the list of record updates, to be sent to a DDB stream after a PartiQL update operation.
    Note: This is currently a fairly expensive operation, as we need to retrieve the list of all items
          from the table, and compare the items to the previously available. This is a limitation as
          we're currently using the DynamoDB Local backend as a blackbox. In future, we should consider hooking
          into the PartiQL query execution inside DynamoDB Local and directly extract the list of updated items.
    """
    result = []
    stream_spec = dynamodb_get_table_stream_specification(table_name=table_name)
    key_schema = SchemaExtractor.get_key_schema(table_name)
    before = ItemSet(existing_items, key_schema=key_schema)
    after = ItemSet(ItemFinder.get_all_table_items(table_name), key_schema=key_schema)
    def _add_record(item, comparison_set: ItemSet):
        matching_item = comparison_set.find_item(item)
        if matching_item == item:
            return
        
        if comparison_set == after:
            if matching_item: