Empty .update() call detected when attempting to publish an entry in Strapi 5
### Node Version

22.12.0

### NPM/Yarn/PNPM Version

NPM 10.9.0

### Strapi Version

5.11.1

### Operating System

Linux (Debian/Ubuntu)

### Database

PostgreSQL

### Javascript or Typescript

Typescript

### Reproduction URL

https://github.com/gatsinski/strapi-relation-issue

### Bug Description

I have two collections: Item and Category, with a one-to-many relationship. One Item can have multiple Categories, but each Category must be uniquely assigned to a single Item. While such relationships are typically many-to-many, my use case requires this restriction. Both collections have the Draft & Publish feature enabled, though it is not essential for the Category collection.

Here's the issue I encountered:

1. I created and published an Item without attaching any Categories.
2. Next, I created a Category and linked it to the Item. Everything worked fine up to this point.
3. However, when I attempted to edit and republish the Item, I received a `Warning: Internal Server Error` message.

In the terminal, the following Knex error appeared:

> error: Empty .update() call detected! Update data does not contain any values to update. This will result in a faulty query. Table: categories_item_lnk. Columns: undefined.

This does not seem to be a database-related issue, as the same error occurs with both PostgreSQL and SQLite.

### Steps to Reproduce

1. Create a collection with Draft & Publish enabled.
2. Create another collection with many-to-one relation to the first one (first collection should have many of the second one).
3. Create one entry of the first collection without any relations and publish it.
4. Add one entry of the second collection and associate it with the entry from the first collection.
5. Edit the entry from the first collection and attempt to publish it again.




### Expected Behavior

The entry should be published normally.

### Logs

```shell
[2025-03-12 16:20:54.951] http: GET /content-manager/relations/api::item.item/categories?id=n2d2b1y82yi566822khtt5ey&pageSize=10&_q=&page=1 (8 ms) 200
[2025-03-12 16:20:54.961] http: GET /content-manager/relations/api::item.item/n2d2b1y82yi566822khtt5ey/categories?pageSize=5&page=1 (10 ms) 200
[2025-03-12 16:20:54.991] http: GET /content-manager/collection-types/api::item.item/n2d2b1y82yi566822khtt5ey/actions/countDraftRelations? (7 ms) 200
[2025-03-12 16:20:58.190] error: Empty .update() call detected! Update data does not contain any values to update. This will result in a faulty query. Table: categories_item_lnk. Columns: undefined.
Error: Empty .update() call detected! Update data does not contain any values to update. This will result in a faulty query. Table: categories_item_lnk. Columns: undefined.
    at QueryCompiler_SQLite3._prepUpdate (/home/hristo.gatsinski/Projects/my-strapi-project/node_modules/knex/lib/query/querycompiler.js:1365:13)
    at QueryCompiler_SQLite3.update (/home/hristo.gatsinski/Projects/my-strapi-project/node_modules/knex/lib/dialects/sqlite3/query/sqlite-querycompiler.js:155:29)
    at QueryCompiler_SQLite3.toSQL (/home/hristo.gatsinski/Projects/my-strapi-project/node_modules/knex/lib/query/querycompiler.js:75:29)
    at QueryBuilder_SQLite3.toSQL (/home/hristo.gatsinski/Projects/my-strapi-project/node_modules/knex/lib/query/querybuilder.js:84:44)
    at ensureConnectionCallback (/home/hristo.gatsinski/Projects/my-strapi-project/node_modules/knex/lib/execution/internal/ensure-connection-callback.js:4:30)
    at Runner.ensureConnection (/home/hristo.gatsinski/Projects/my-strapi-project/node_modules/knex/lib/execution/runner.js:318:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Runner.run (/home/hristo.gatsinski/Projects/my-strapi-project/node_modules/knex/lib/execution/runner.js:30:19)
    at async /home/hristo.gatsinski/Projects/my-strapi-project/node_modules/p-map/index.js:57:22
[2025-03-12 16:20:58.190] http: POST /content-manager/collection-types/api::item.item/n2d2b1y82yi566822khtt5ey/actions/publish? (22 ms) 500
[2025-03-12 16:20:58.206] http: GET /content-manager/collection-types/api::item.item?page=1&pageSize=10&sort=Name%3AASC (10 ms) 200
[2025-03-12 16:20:58.223] http: GET /content-manager/collection-types/api::item.item/n2d2b1y82yi566822khtt5ey? (16 ms) 200
[2025-03-12 16:20:58.238] http: GET /content-manager/relations/api::item.item/n2d2b1y82yi566822khtt5ey/categories?pageSize=5&page=1 (14 ms) 200
```

### Code Snippets

_No response_

### Media

![Image](https://github.com/user-attachments/assets/5433c5c6-aa6c-4f48-b320-ad14ab230a7e)
![Image](https://github.com/user-attachments/assets/6c12cab7-48e2-4667-b28b-7edd7280215a)
![Image](https://github.com/user-attachments/assets/1d766af7-8ed7-48dd-bf9d-f27223768b6f)
![Image](https://github.com/user-attachments/assets/3cafc37f-0c64-49cb-aa61-833a7ac1af83)
![Image](https://github.com/user-attachments/assets/55d100d6-faa2-4940-a259-683b16783112)
![Image](https://github.com/user-attachments/assets/f77fdf69-0149-4c3a-aab6-17fe1ccf03f6)

### Additional information

I found many issues with relations in Strapi 5 but none seem to match my specific case. Apologies if this turns out to be a duplicate.

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).