Catch exception when printing Alert log

Andrea Gianarda
2024-04-04T07:19:12Z

https://gitlab.linphone.org/BC/public/liblinphone/-/merge_requests/2996