tal/path: fix unset vars in error paths.