Bug 897095 - Don't call restoreHistory() for closed windows; r=smacleod a=lsblakk