Qt: Fix ESC in disablewallet mode

Fixes issue #3854