(bug 51099) Fix construction of TermSqlIndex in client.

BLOCKER! The client is unusable without this patch.

Change-Id: Ia5766c57d2cef98060ed36895bccfcf8de16a93f