bandwidth allocation fix for when torrent is null