CRM-15317 - Database error on event registration when event title is too long

https://issues.civicrm.org/jira/browse/CRM-15317
Webtest fix