Avoid LuaError idiom that's triggering a C++ UB.