BS-11350
Fix unstable test MultiInstantiationIT.testMultiInstanceEraseButton
wait for dirty editor, avoid to close diagram 2 times.
Merge branch 'MasterBugFixing' of https://github.com/bonitasoft/bonita-studio.git into MasterBugFixing