Merge pull request #979 from dimagi/ptop-reindex-fixes

ptop reindex fix with chunking
fix off-by-one error in ptop reindexer