wgl: Don't flush surface if it is NULL.

Just a quick fix to prevent segfaults with glean.
1 file changed