Fix a bug in the forecast.midas_r which affected dynamic forecasting for
custom insamples