[Qt] Fix segfault when launched with -disablewallet