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