core: Fix conditional for setting override_redirect