[refactor] deduplicate AmountFromValue
Summary: just use the one defined in rpc/util.h and add a catch block for thrown UniValues in bitcoin-tx
Test Plan:
ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D9638