Fix crash from failing XOpenDisplay