I just got that error message in the API console, and I think it is great. Would it be possible, maybe by setting some option or flag in the code, to turn that into a crash, so that I could get a call stack leading to that error? I really don't want my scripts to try to write undefined values into attributes.