client_init: fix crashing client upon wrong parameters, init or deinit
client_init: fix crashing client upon wrong parameters, init or deinit

Closes https://github.com/espressif/esp-idf/issues/3191

tuanpmt/espmqtt