CRM-15368

Fix for https://issues.civicrm.org/jira/browse/CRM-15368