#53 Avoid NPE in IndexUtils