Bug 495123 - Save an empty window state if it's the last window closed and there were no others closed in series before r=smacleod a=lsblakk