fix for failing tests
BZ 1035442 -  Unsaved changes warning is shown just the first time