Catch exception by ref in wallettool.cpp
Summary: Catching exception by value is a bad practice, notably because it can lead to slicing.
Test Plan:
ninja check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D5762