Bug 1020831 - Restore closed windows also when there are no open windows