Fix NPE if data table not cached when index is altered