CRM-14277

This patch fixes error coming after done click.
Also the error was coming on click done on view of Event as well as Membership including Contribution after Activity Search.
This issue was replicated for all the CMS.