trust_region/dogleg: fixing sign error

(cherry picked from commit 58ba964bb7e286e2fbf679eb39168e1c4e281b4b)