Fix TypeError caused by inactive ssh-agent

`SSH#requestIdentities` returns `undefined` if `ssh-agent` isn’t
active, so the unguarded call to `keys.filter` throws a `TypeError`.