Fix logic in tsk_hdb_hasindex() which is used by SleuthkitJNI.lookupIndexExists().