Fixes #3935 - great job @billreed63 catching this bug. Renaming a state
was throwing an exception if the old state name had been assigned to an
onclick (or whatever) handler.
Merge branch 'master' of github.com:maqetta/maqetta