Catch exceptions thrown by MessageFormat.js.