Updated GLM2 line search behavior to get correct result if maximum number of iterations is reached.