Fix NRE in WGL IsExtensionPresent (#2470)