Robust methods for generalized linear models with nonignorable missing covariates