fix for : CRM-7802 applied patch

verified and applied patch after checking on http://issues.civicrm.org/jira/browse/CRM-7802?focusedCommentId=49156&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-49156

issue comment.