debugger: fix reset_msgid

Don't change the msg->id when that message has been processed already

(cherry picked from commit 6b2f7d0b9d405d8ffd2310f788254453d6748f0b)