Actually not. The id in this case isn't consumed.
But I have a couple of leads, I was able to identify some test cases that left a couple of empty slots in the scriptFunctions array. Tomorrow I'll investigate those to fix the problem.
[edit] My english seems to be getting worse :(