Fix for incorrect VALUE_MATE_IN_MAX_PLY usage.