Fix bugs in marginal mlogregr to handle all-null-input data table
Fix various bugs to make all functions handle all-null-input data table properly