Move call to SendAlert to its own try/catch block so we can throw the or...

...iginal exception if SendAlert throws.

Fixes #19334

Licensed under MIT/X11.