Fix paging problems in samples. Index would be out of bounds without
paging in any community with more than 10 members.
Merge pull request #613 from fmoloney/StandaloneJavaFix

Fix paging problems in samples.