This looks like a bug in the Simple Machines forum software. I keep it up-to-date, but I'll see if there is something I can do about this problem.
Sorry, the only workaround, as Georg has pointed out, is knowing that this happens and taking the precaution to copy your message elsewhere before previewing.