Bugfix in glm: fixed NPE in cross-validation.