This fixes an issue by adding a undefined check to _disableAgreements in addition to that we also add the check to _computeHideAgreementClass too. Bug: Issue 12020 Change-Id: Icf444aa315d24b34b5bf1cd62173ae62f6b84931