Updated the GLX context/surface wrappers

- Added error handling to the functions getting current context/surface.