Removed the usage of an EMF transaction.

Diagram update doesn’t work now, but the exception is fixed.