corrected binsearch to avoid empty nzbs