Fix segfault in setSwapInterval if extension is not supported