Fix EZP-23584: Impossible to edit and publish the same content 2 times in a row

JIRA: https://jira.ez.no/browse/EZP-23584

# Description

When trying to edit the same content two times in row, the second publish process fails because the PlatformUI tries to republish an already published version. This is actually caused by [a YUI issue](https://github.com/yui/yui3/issues/1982) where the `id` attribute of a model (a version here) is not correctly resetted and thus instead of publishing a new version, we are still referencing the id of the previous version.

# Tests

manual + unit tests