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