[PATCH] quartz: Fix crash when pVisible is NULL.