SERVER-75015 introduced a feature flag check before spawning the checkMetadataConsistency hook. However, there are some evergreen tasks like antithesis_image_test that do not establish connections with the cluster, so a feature flag check cannot be performed.
An extra validation should be added to prevent running the hook if it is not possible to connect to the cluster.