Timob 6239 result set next

Changed the signature of next to return a boolean and modified the code to return status.

https://jira.appcelerator.org/browse/TIMOB-6239