This prevents a crash when launching the Qt client for some reason.