Fix error when w-restore-params is undefined