fix possible crash when exchanging metadata
fix possible crash when exchanging metadata

mafintosh/torrent-stream,jaruba/torrent-stream,jleal52/torrent-stream,LeeChSien/torrent-stream,studio666/torrent-stream,giacomocerquone/torrent-stream,bsuh/torrent-stream,ralphtheninja/torrent-stream