Fix TypeError in webhooks code when transaction log is empty.
[DEPENDENCIES] Use faulthandler module for easier debugging.

Install and enable the faulthandler module, which prints a Python traceback if
the process receives SIGABRT or similar signals. This is helpful for debugging
hanging processes, and should eventually be useful when we have our own utility
to monitor resource consumption.