Make mpConsole in Host into a QPointer.

QPointer is set to null when the thing it points to is deleted.
Don't access mpConsole if it is null.
Merge branch 'release_31' into development

Make mpConsole in Host into a QPointer.
Don't access mpConsole if it is null.