Set internal message ID to nextId after handling pending messages (#9463)
* Set internal message ID to nextId after handling pending messages
* add change file
* update bundle
* update reference.md
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app>