Fix segfault on invalid graphics context driver

Last element of gfx_ctx_drivers[] is NULL, don't dereference it.