core: fix uninitialized variable when saving layout for windows in upgrade
core: use layout saved when option weechat.look.save_layout_on_exit is enabled (so it is automatically restored when WeeChat restarts)