LUCENE-5961 port, fix exists() for some FuncValues