It was possible to cause bitcoin-qt to crash by executing any command in menu Window > Console during startup.
This is fixed by disabling console line edit by default, and only enabling once RPCConsole::setClientModel is called.
Backport of Core PR16122