HEX-1406: fixed NullDev computation in glm for categorical response. NullDev uses mean of the response, which is usually taken from the VA header, however, it is NaN for categoricals. Added code to explicitly compute the mean before validation.