CRM-12728-fix : fixed notices

fixed notices, was not able to replicate the issue.