Fixed crash when KeyboardFocusManager clears the focus