notice fixes
worked on CRM-12711
Merge pull request #889 from kurund/CRM-12711

CRM-12711, few notice fixes that broke ajax reposnse