Fixed undo call (thx @cdeliason)

Removed a few unnecessary and faulty method calls, which prevented the
script from running properly in the latest versions of Glyphs.