save model check for null xvalmodels in GLM first, fixes null pointer exception