fix for notice found while QA of CRM-12348, and added a missing execute statement
Merge pull request #446 from pratik-joshi/CRM-12348_qa

fix for notice found while QA of CRM-12348, and added a missing execute ...