Sometimes aria2 gives a totallength of zero. Don't know why. This commit tries to fix it.