SOLR-6540 Fix NPE from strdist() func when doc value source does not exist in a doc (merge r1631555)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_5x@1631592 13f79535-47bb-0310-9956-ffa450edef68