fix crash in libtorrent-webui websocket API and introduce a runtime error instead