Warning messages about using a pre-release test build was only displayed
when wallet was enabled. This added the warning also to the debug window
displayed in `-disablewallet` mode
Backport of Core [[https://github.com/bitcoin/bitcoin/pull/14879 | PR14879]]