Fix Halley iteration to work when derivative is zero, even though the second derivative is not, see https://svn.boost.org/trac/boost/ticket/10046.