Filtered error messages so they don't crash the javascript modals.

This is the quick fix: htmlspecialchars to filter error messages to make them compatible with MODExt's failure alert box.

A more thorough solution here would be to tackle this: http://tracker.modx.com/issues/9982