Fix for MB-45615 fails to return a closing brace when the value is empty.
MB-45615 [System Test] : OOM kills and crashes with errors "fatal error: runtime: out of memory" seen multiple times on 1 query node
MB-45774 Syntax error with query involving array index
MB-45778 N1QL: search() query execution failed