Bugfix: prevent division by zero error in line search interpolation.