Fixed an occasional Lua error when using the arrest stick.