BS-11350
Fix unstable test MultiInstantiationIT.testMultiInstanceEraseButton
wait for dirty editor, avoid to close diagram 2 times.