Fix SPARK-4471: blockManagerIdFromJson function throws exception while BlockManagerId be null in MetadataFetchFailedException