luatpt_getPartIndex no longer returns a valid particle index when next_getPartIndex is false.

getPartIndex now returns an invalid particle index when it fails.  
Fixes #216