MT#8699 fix debugger.reset_msgid (avoid fuzz)

(cherry picked from commit 19112c4bff5259089714e7a8df1aa0c2e9ab7889)