Backport 1.8 3848

Backport #3848: `BUG: Allos linalg.solve to handle zero equations.`

Closes #3847.