fix(dsolvers/icp_solver): move LOG into the conditional

 - Splitting var can be negative and it cause a segmentation fault.