Restore ancestor relation of tabs even if it is restored by "undo close tab"