workspace: don't segfault on window::destroy.