Fix boolean flip-flop on tsk_hdb_hasindex().
Fix compiler warning.