bug fix when posterior filter or forecast are not triggered. (thanks to Daniel from the Dynare Forum)