multilineedit: handle unterminated mIRC codes
Currently, if an unterminated mIRC code is pasted into Quassel, trying to
go through input line history will cause a deadlock. This breaks the loop
at the cost of possibly mangling the formatting of the line somewhat.
This is seen as more acceptable than locking up, and the line is invalid
anyway.
Reproducer:
```sh
printf '\00303,08HONK' | xclip -selection clipboard
```
Paste into Quassel, send, press Up arrow key.
Bug originally found by @sroracle, reported to Adélie Linux, patched by
yours truly.