fix potential crash in some edge cases while a torrent_info object is invalid