Translations:Extension:Scribunto/Lua reference manual/1526/en

Behavior is undefined if, when using next for traversal, any non-existing key is assigned a value. Assigning a new value (including nil) to an existing field is allowed.