Fixed crash if all displays have been disconnected Fixes https://github.com/libsdl-org/SDL/issues/5867