Store the current Lua thread on each yield.

I don't think there's any good reason to start a coroutine in an event handler
and then call the dialogue functions from that coroutine, but better safe than sorry.
Explanations and error handling
Index dialogue choices starting at 1