fix for CRM-15474

----------------------------------------
* CRM-15474: Event cart option js breaks "add participant" form
  https://issues.civicrm.org/jira/browse/CRM-15474
Merge pull request #4514 from kurund/CRM-15474

fix for CRM-15474