Fix bug in WpEvent referencing.
while calling async execute closure, take a reference to the WpEvent object before pushing it to the Lua stack. Otherwise Lua garbage collector frees it, which leads to invalid memory access.
while calling async execute closure, take a reference to the WpEvent object before pushing it to the Lua stack. Otherwise Lua garbage collector frees it, which leads to invalid memory access.