Better warning and error messages for the case coef is NA in lm/glm