glm2 bug fix: fix npe in line-search.