Merge branch 'mr_hessian' into 'master'

mr_hessian.m: prevent infinite loop

Closes #1636

See merge request !1645
5 jobs for master in 101 minutes and 36 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #2732
build_binaries

00:10:21

passed #2733
build_doc

00:01:54

 
  Test
passed #2736
test_dynare++

00:07:33

passed #2734
testsuite_matlab

01:31:14

manual #2735
allowed to fail manual
testsuite_octave_manual