SOLR-7866: Harden code to prevent an unhandled NPE when trying to determine the max value of the version field.