TJ/JPM: fixed prefixSearch for empty indexes