more gracefully handle models that result in zero residual DoF