fix(pi): handle stale extension context in custom-footer render
Wrap both render() functions with try-catch to prevent crash when
quitting pi. The extension runner throws when accessing ctx.cwd on
a stale session, now gracefully returns empty footer instead.