Fix handling of jaggr generated browser console messages for NotFoundException handling.

When running in Debug or Development mode, JAGGR will add console.error() calls in the returned layer to display the text of server-side errors in the browser console.  For certain errors (e.g. ModuleNotFound), the JavaScript emitted by JAGGR to display the console messages was causing JavaScript syntax errors.  This occurred with text resources that were not found due to the differences in the way text resources are declared vs. javascript resources.  This pull request resolves these issues.