Fix inconsistent check of UNSAFE_LEGACY_RENEGOTIATION