The reset method on the table returned by Wait.collect incorrectly sets a global variable called results rather than setting the results field of the table.
reset
Wait.collect
results
Fix:in LuaWait.CollectLua, change results = {} to self.results = {}
LuaWait.CollectLua
results = {}
self.results = {}