Avoid diving by zero in:
EstimateMedianVal
(policy)ConnectTip
(validation)CreateTransaction
(wallet)
These are real nontheoretical cases in the sense that they are easily reachable.
Steps to reproduce:
0./configure --with-sanitizers=undefined && make check && ./test/functional/test_runner.py