Change gridStartIterate interface to safely allow recursive calls.

Probably fixes ticket:3894.