Replacement for #8170 that doesn't change behaviour.
This deprecates the use of getrawtransaction for finding confirmed transactions with unspent transaction outputs when txindex is not enabled. The help text is updated to achieve this.
The error message in case of a failed result is improved, and made dependent on whether txindex is enabled.