Added check in cepl:repl to see if opengl context has been created.