Fix crash on glfwCreateWindow failure.