Fixing libotr crash (taking a 3rd party patch)

I hope it doesn't make libotr insecure, but the trivial patch comes from
this irssi-otr thread:
https://github.com/cryptodotis/irssi-otr/issues/21