Fix 1796971: if the user tries to quit synfig or close a document when there's unsave...