Merge "Don't end transitions on a detached window, prevent crash in WindowId"