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