This will result in a Javascript error, which is likely to crash the app (if 'Continue' is clicked). We should catch this error and instead of logging a warning msg, it should be an error msg.