Merge "Fix view not attached to window manager crash and add logs."