fix smart ban assert when closing a torrent with a failing piece
fix smart ban assert when closing a torrent with a failing piece

deluge-clone/libtorrent,deluge-clone/libtorrent,deluge-clone/libtorrent,deluge-clone/libtorrent,deluge-clone/libtorrent,deluge-clone/libtorrent