Fix error handling in PKF smoother

Problems in solving will crash Dynare: extract_smoothed.mod data_final2.xlsx