We should have a feature on fit_net_logit and fit_net_clogit for removing variables of the formula (and providing a warning) if a variable has SD zero.
Also, it would require us to check the presence of all variables afterwards in bag_models and adding NA coefficients to those variables from the models where they were removed.