CRM-15557 fix

Fix for https://issues.civicrm.org/jira/browse/CRM-15557?focusedCommentId=68449&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-68449