Solvers: removed duplicate output

Fixes issue 4129 by passing result through set before returning