Help with annoying LUA error?

Try sticking down a map pin, ctrl-click, then removing it.