CRM-14623 notice fixes

----------------------------------------
* CRM-14623: PHP Notices when registering a participant in the back end for an event that uses a price set with max participants
  https://issues.civicrm.org/jira/browse/CRM-14623
Merge pull request #3295 from monishdeb/CRM-14623

CRM-14623 notice fixes