fix "next" url in latest user api

http://manage.dimagi.com/default.asp?110111
Merge pull request #3271 from dimagi/user-api-fix

fix "next" url in latest user api