end querystream if docs is null