Let least squares solver return zeros instead of throwing an error when left hand side is zero

This is similar to MATLAB behaviour