Before setting the focus to the OK button, check if it still exists