[Qt] fix slot connection problems when no wallet is loaded

- guard 4 connect calls by an #ifdef when no wallet is loaded to fix "No
  such slot" warnings
- also add comments when #ifdef ENABLE_WALLET end
- fixes #5175
Merge pull request #5176

981f790 [Qt] fix slot connection problems when no wallet is loaded (Philip Kaufmann)