LPS-40850 Fix syntax errors at variable assignment code in template editor

@JorgeFerrer