Fixed broken WGL error detection.

Context creation was attempted even if no valid pixel formats had been
found during enumeration.