Qt: Fix ESC in disablewallet mode

Fixes issue #3854
Merge pull request #3892

b8edf6c Qt: Fix ESC in disablewallet mode (Wladimir J. van der Laan)