[fix] thread list was considered empty when doclist was empty