This patch is not actually testable without D4236, but it fixes a bug that is not usually visible without dynamically loadable wallets.
arc patch D4236
arc path D<this patch>
make check
./bitcoin-qt
Help -> Debug -> Console
loadwallet ""
Pre patch, this would crash the gui
Post patch, this should simply fail
createwallet test
Make sure the default wallet is selected
getwalletinfo
Pre patch this would fail with the following error:
Wallet file not specified (must request wallet RPC through /wallet/<filename> uri-path). (code -19)
Post patch, this will succeed.