CRM-13283 fix - Number of terms does not update the end date of membership

https://issues.civicrm.org/jira/browse/CRM-13283
Merge pull request #2864 from monishdeb/CRM-13283

CRM-13283 fix - Number of terms does not update the end date of membership