The test "Test -getinfo with -rpcwallet=unloaded wallet returns no balances" was not actually asserting anything useful as `cli_get_info_keys` was not defined and was reused from an earlier test instead.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/21822 | core#21822]]