This simple change would allow other wallets/signal listeners to providing a scripts for the coinbase output. Currently the main wallet will always overwrite a possible available script.
Without this PR, RPC test for the new wallet would require to send in funds mined of ther current wallet.