CMIS-609: check for hasMoreItems flag when iterating

git-svn-id: https://svn.apache.org/repos/asf/chemistry/dotcmis/trunk@1432968 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/DotCMIS/client/client-utils.cs b/DotCMIS/client/client-utils.cs
index c116c64..5c9a67e 100644
--- a/DotCMIS/client/client-utils.cs
+++ b/DotCMIS/client/client-utils.cs
@@ -619,6 +619,11 @@
 

             if (SkipOffset == items.Count)

             {

+                if (!HasMoreItems)

+                {

+                    return false;

+                } 

+

                 page = IncrementPage();

                 items = page == null ? null : page.Items;

             }