### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

It seems that it is possible to receive sns message in an sqs listener if there is a filterpolicy in place for null value in a message attribute, and a message is being sent without the message attribute.

### Expected Behavior

Don't recieve these type of messages

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

`sns subscribe --topic-arn "demoTopicArn"  --protocol sqs --notification-endpoint "demoSqsEndpoint" --attributes '{"RawMessageDelivery": "true"}'`
`sns set-subscription-attributes --subscription-arn demoSubsArn --attribute-name FilterPolicy --attribute-value '{"testForNull": [null,{"anything-but": ["notgood"]}]}'`
`sns publish --topic-arn demoTopicArn --message "testforrecieval"`
`sqs receive-message --queue-url  "demoUrl"`

### Environment

```markdown
- OS: macOS 13.6
- LocalStack: 2.2.0
```


### Anything else?

_No response_
msgs_url, params={"region": SECONDARY_TEST_AWS_REGION_NAME}
        ).json()
        assert len(msg_with_region["platform_endpoint_messages"]) == 0
        assert msg_with_region["region"] == SECONDARY_TEST_AWS_REGION_NAME
        # E
        msg_with_region = requests.get(msgs_url).json()
        assert msg_with_region["region"] == AWS_REGION_US_EAST_1
        # E
        api_contents_with_endpoint = requests.get(
            msgs_url, params={"endpointArn": endpoint_arn}
        ).json()
        msgs_with_endpoint = api_contents_with_endpoint["platform_endpoint_messages"]
        assert len(msgs_with_endpoint) == 1
        assert len(msgs_with_endpoint[endpoint_arn]) == 1
        assert api_contents_with_endpoint["region"] == "us-east-1"
        # E
        delete_res = requests.delete(msgs_url, params={"endpointArn": endpoint_arn})
        assert delete_res.status_code == 204
        api_contents_with_endpoint = requests.get(
            msgs_url, params={"endpointArn": endpoint_arn}
        ).json()
        msgs_with_endpoint = api_contents_with_endpoint["platform_endpoint_messages"]
        assert len(msgs_with_endpoint[endpoint_arn]) == 0
        # E
        delete_res = requests.delete(msgs_url, params={"region": "us-east-1"})
        assert delete_res.status_code == 204
        msg_with_region = requests.get(msgs_url, params={"region": "us-east-1"}).json()
        assert not msg_with_region["platform_endpoint_messages"]
    @markers.aws.only_localstack
    def test_publish_sms_can_retrospect(self, sns_create_topic, sns_subscription, aws_client):