Fix null pointer when validating ssl config.