YARN-2952. Fixed incorrect version check in StateStore. Contributed by Rohith Sharmaks