Handle case when sparse solver return nan result following what scipy 0....

...13 did addressing Issue #5