Fixed some IndexDatabase null checks
Added IndexHit.getTermContext()