CRM-14917 upgrade fix

----------------------------------------
* CRM-14917:
  https://issues.civicrm.org/jira/browse/CRM-14917