Java API: fixed warnings in TermVectorRequest, also called super.validate for index not null check