Fixes bug introduced in 97b894a1, if no shocks are declared (for instance if the user is interested in the transition to the steady state). (cherry picked from commit 10047fee)