CRM-14030 : applied patch for 4.4 version

Submitted a fix PR against 4.4 branch, reporter submitted fix PR https://github.com/civicrm/civicrm-core/pull/2282 against master