I believe I have this fixed now. I've only ever managed to trigger it when I wasn't viewing the tab when the thread was loaded. The fixes are a little hacky, but TinyMCE does some weird things that give me inconsistent results with how I was hoping to fix this.