check number of terms when updating member payment status

this fixes CRM-12268 by looking up the number of terms in CRM_Contribute_BAO_Contribution::transitionComponents()