Eliminate an NPE with debugging on when nothing gets indexed