Modify shape check on coef matrix in _logistic_regression_path.