LPS-51722 Syntax errors in JavaScript doesn't throw com.liferay.portal.kernel.scripting.ScriptingException
LPS-51722 Adding tests
LPS-51722 SF