Don't close module if opening failed during graphics initialization

If os_dlopen() fails in gs_create() the error handling is executed which calls gs_destroy(). gs_destroy() always tries to close graphics->module even if no module was loaded in gs_create(). If os_dlclose() is called with NULL on Linux it causes a segmentation fault.