avoid IndexOutOfBoundsException on all field with no tokens and keywordanalyzer

should fix #4771