det_cond_forecast() argument checking is broken

If one calls det_cond_forecast with two arguments only as in the manual example, the function fails with error

impossible case

that is triggered near line 208