Handle docs == null in Querystream