catch the possible exception from TLS options calls (bnc#801065)

- 2.23.0