Fixed null pointer exception in isSubscriptionDomainValid method