Hide alert before creating PSD

NOTE: Previously, the PSD was being created before the alert was dismissed.
      This resulted in several extra unnecessary layers (belonging to the alert
      window) to be added to the PSD.