Fix misuse of lua_pop