Fixes STS-3385 cannot close WTP prefs page with ok if WTP is not installed.