Fix random crashes when opening HTTP debug console.