fix Query error when response entities below 10.
use define string form end of pages
clean cursor for first page
Fix for NSError still return nil while Query's Prev and Next state.
Merge branch 'hotfix/for_paging_error'