Prevent NPE in buggy situation where field to index doesn't have a database equivalent.