If a GL context is requested for which no API support is compiled in then `NULL` is returned. Also remove a useless `NULL` check: `g_object_new()` can't possibly return `NULL`, ever. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3656>