Fixing liquid syntax, such that post template rendering we have a valid ...

Fixing liquid syntax, such that post template rendering we have a valid json.
Liquid doesn't seem to support negation operator, resulting in an invalid condition, leading to a trailing "," at the end, which results in an invalid Json while replacing the template.