Added null checker for attributeVariates before calling contains     Ticket: GCP-9753    Reviewer: Jai